package com.ruoyi.system.api.patent;

import com.ruoyi.common.core.utils.DateUtils;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.entity.Inventor;
import com.ruoyi.system.api.factory.RemoteCustomerFallbackFactory;
import com.ruoyi.system.api.factory.RemotePatentFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 远程专利服务 @iCAN
 */
@FeignClient(contextId = "remotePatentService", value = "ipms-patent", fallbackFactory = RemotePatentFallbackFactory.class)
//@FeignClient(contextId = "remoteCustomerService", value = "ipms-crm")
public interface RemotePatentService
{
    /*新增发明人*/
    @PostMapping("/patent/inventor/add")
    AjaxResult addOne(@RequestBody Inventor inventor);

    /*模拟官方授权信息*/
    @GetMapping("/patent/case/official")
    AjaxResult officialResult();
}
